package com.sdy.dcsb.biz.model.swagger;

import com.sdy.dcsb.biz.model.EsbInboundParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Snaky
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "EsbInboundParamPageData", description = "服务目录参数配置页面数据")
public class EsbInboundParamPageData {

    @ApiModelProperty(value = "返回码")
    private Integer code;
    @ApiModelProperty(value = "成功标识")
    private boolean success;
    @ApiModelProperty(value = "返回消息")
    private String message;
    @ApiModelProperty(value = "返回数据")
    private EsbInboundParamPageData.Data data;

    @lombok.Data
    @Accessors(chain = true)
    private class Data{
        @ApiModelProperty(value = "参数配置信息数组")
        private EsbInboundParam[] records;
        @ApiModelProperty(value = "总数据量")
        private Integer total;
        @ApiModelProperty(value = "分页大小")
        private Integer size;
        @ApiModelProperty(value = "当前页")
        private Integer current;
        @ApiModelProperty(value = "是否计数，默认为true")
        private Integer searchCount;
        @ApiModelProperty(value = "页数")
        private Integer pages;
    }
}
